import Vue from 'vue';
import App from './app.vue';
import VueRouter from 'vue-router';
import axios from 'axios'
import VueAxios from 'vue-axios'
import Home from './components/home.vue';
import Two from './components/two.vue';

Vue.use(VueRouter);
Vue.use(VueAxios, axios);

const router = new VueRouter({
  routes: [{
    path: '/home',
    component: Home
  },
    {
      path: '/two',
      component: Two
    }
  ]
});

new Vue({
  el: '#app1',
  router,
  render: h => {
    return h(App);
  }
});
